<?php

	$cachefile = './cache.html';
	$cachetime = 3;
	date_default_timezone_set("PRC"); 
	if(file_exists($cachefile)&&(time()-$cachetime)<filemtime($cachefile)){
		include($cachefile);
		exit();
	}

	ob_start();
?>
<html>
<head>
	<title>sdfsdf</title>
</head>
<body>
<center><h2>
<?

	echo '当前时间：'.date('Y-m-d H:i:s');
	echo '<pre>';
	print_r(ob_get_status());
	echo '</pre>';
?>
</h2></center>
</body>
</html>

<?
	$cache = fopen($cachefile, 'w');
	fwrite($cache, ob_get_contents());
	fclose($cache);
	ob_end_flush();

?>